package com.yhb.channel.dao.BJCJ;

import org.apache.ibatis.annotations.Param;

public interface BJCJChannelBoundRelationshipMapper {
    int insert(
            @Param("record") BJCJChannelBoundRelationshipRecord record,
            @Param("channelCode") String channelCode
    );

    String selectBillingCardIdByUserId(
            @Param("userId") String userId,
            @Param("channelCode") String channelCode
    );

    BJCJChannelBoundRelationshipRecord getBillingCardRecordByUserId(
            @Param("userId") String userId,
            @Param("channelCode") String channelCode
    );

    BJCJChannelBoundRelationshipRecord getRecordByCardId(
            @Param("cardId") String cardId,
            @Param("channelCode") String channelCode
    );

    int updateByUserId(
            @Param("record") BJCJChannelBoundRelationshipRecord record,
            @Param("channelCode") String channelCode
    );

    int updateByCardId(
            @Param("record") BJCJChannelBoundRelationshipRecord record,
            @Param("channelCode") String channelCode
    );
}
